package com.sfy.login.service.impl;

import com.sfy.login.common.LoginTypeEnum;
import com.sfy.login.entity.User;
import org.springframework.stereotype.Service;

@Service
public class PasswordLoginService extends AbstarctLoginService{
    @Override
    public String getLoginType() {
        return LoginTypeEnum.PASSWORD_LOGIN.getLoginCode();
    }

    @Override
    public String getCode(User user) {
        return user.getPassword();
    }

    @Override
    public void removeLoginCache(User user) {
        return;
    }
}
